projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c6f17
)
spl: Allow settings malloc_f base address
author
Marek Vasut
<
[email protected]
>
Wed, 25 May 2016 00:14:56 +0000
(
02:14
+0200)
committer
Tom Rini
<
[email protected]
>
Fri, 3 Jun 2016 01:21:42 +0000
(21:21 -0400)
Allow configuring the begining of the malloc_f area in SPL.
This patch uses the same CONFIG_MALLOC_F_ADDR established by
the sandbox.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
Cc: Simon Glass <
[email protected]
>
common/spl/spl.c
patch
|
blob
|
history
diff --git
a/common/spl/spl.c
b/common/spl/spl.c
index bdde71691887f3f8d461b0b3e46bd3159468b940..780c081fb2c29ffe75b3229c73a9e381e3101c62 100644
(file)
--- a/
common/spl/spl.c
+++ b/
common/spl/spl.c
@@
-192,6
+192,9
@@
int spl_init(void)
debug("spl_init()\n");
#if defined(CONFIG_SYS_MALLOC_F_LEN)
+#ifdef CONFIG_MALLOC_F_ADDR
+ gd->malloc_base = CONFIG_MALLOC_F_ADDR;
+#endif
gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
gd->malloc_ptr = 0;
#endif